﻿<UserControl x:Class="OIManager.Views.SettingsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Framework="clr-namespace:OI.Framework" mc:Ignorable="d"
    Height="Auto" Width="600">
    
    <Grid x:Name="LayoutRoot" Background="White" Margin="0,48,0,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>


        <!--Connection String-->
        <TextBlock Grid.Row="0" Grid.Column="0" Margin="4,0,8,0" Text="SQL Connection String:" 
                   Style="{StaticResource GeneralText}" VerticalAlignment="Center"/>
        <Framework:WatermarkTextBox x:Name="SQLConnection"
                                    Grid.Row="0" Grid.Column="1" Height="64" Margin="0,4,4,0"
                                    TextWrapping="Wrap"
                                    Watermark="Please enter an admin database connection string: Server=tcp:[your server];Database=[OI database];User ID=[admin user];Password=[admin pwd];Trusted_Connection=False;Encrypt=True;"
                                    Style="{StaticResource WatermarkTextBoxStyle}" />
        <!--Update-->
        <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" 
                    HorizontalAlignment="Center" Margin="0,24,0,0" Width="Auto">
            <Button Name="Save" Content="Save" Width="64" Height="32"  /> 
        </StackPanel>
    </Grid>
</UserControl>
